# 工具类
def read_confirm_select():
    print("请输入你的选择(Y/N):", end="")
    while True:
        choice = input()
        if choice.lower() == "y" or choice.lower() == "n":
            break
        else:
            print("输入有误，请重新输入", end="")
    return choice.lower()


def read_str(tip, default_val):
    str = input(tip)
    if len(str) > 0:
        return str
    else:
        return default_val
